<?php
	$this->load->helper('form');	
	$this->load->helper('url');
	$viewGameUrl = site_url('games/viewGame');	
?>
<div>
	<h3>Edit review</h3>
	<?	
	$hidden = array('user_id' => '1', 'game_id' => $gameID);
	$attributes = array('class' => 'addForm',
						'name' => 'addForm',
	 					'id' => 'addForm');
	?>
	<?= form_open('reviews/editReview', $attributes, $hidden); ?>
		<fieldset>
			<?
			$data = array(
			              'name'        => 'review_content',
			              'id'          => 'review_content',
			              'value'       => $reviewDetails['review_content'],
			              'cols'   		=> '50',
			              'rows'       	=> '8'
			            );
			?>
			<?=form_textarea($data);?>
			<?=form_submit('submit', 'Save as the newest version', 'id="submit"');?>			
		</fieldset>	
	<?= form_close(); ?>	
</div>


<div>
	<a href="<?=$viewGameUrl."/".$gameID?>">Done Review</a>
</div>